<template>
	<div>
		<div style="margin-top: 10%;">
			<div style="background-color: #FFFFFF;display: flex;width: 95%;margin: auto;">
				<div style="width: 30%;">
					<image :src="expert_detail[0].imageUrl" style="width: 100%;height: 20vh;"></image>
				</div>
				<div style="margin-left: 10%;margin-top: 2%;width: 50%;">
					<div style="margin-bottom: 3%;">
						姓名：{{expert_detail[0].expertName}}
					</div>
					<div style="margin-bottom: 3%;">
						专业：{{expert_detail[0].expertProfession}}
					</div>
					<div style="margin-bottom: 3%;">
						学位/学历：{{expert_detail[0].degreeEducation}}
					</div>
					<div style="margin-bottom: 3%;">
						职务：{{expert_detail[0].post}}
					</div>
				</div>
			</div>
			<div style="width: 95%;margin: auto;line-height: 3vh;">
				<div style="margin-top: 5%;margin-bottom: 5%;text-indent: 2em;">
					主要成就:{{ expert_detail[0].majorAchievements }}
				</div>
				<div style="text-indent: 2em;">
					个人简介:{{ expert_detail[0].briefIntroduction }}
				</div>
			</div>
		</div>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				expert_id: '',
				expert_detail: []
			}
		},
		onLoad: function(option) {
			this.expert_id = option.id;
			uni.request({
				method: 'POST',
				url: 'https://www.gjegm.ltd/czsczq/expertMessage/getExpertByIdAndName',
				data: {
					id: this.expert_id
				},
				header: {
					'content-type': 'application/x-www-form-urlencoded',
					'token': uni.getStorageSync('token')
				},
				success: (res) => {
					this.expert_detail = res.data.obj;
				}
			});
		},
		created() {

		},
		methods: {

		}
	}
</script>

<style>
</style>
